package com.eurake.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //登录 5003xx
    LOGIN_ERROR(500301,"用户名或密码错误"),
    MOBILE_ERROR(500302,"手机号码格式不正确"),
    USER_NOT_FIND(500303,"用户名不存在"),
    PASSWORD_UPDATE_FAIL(500304,"更新密码失败"),
    SESSION_ERROR(500304,"用户不存在"),
    //商品操作 5004xx
    Goods_NOT_FIND(500401,"商品不存在"),
    REQUEST_ILLEGAL(500506,"请求非法"),

    //秒杀 5005xx
    EMPTY_STOCK(500500,"库存不足"),
    REPEATE_ERROR(500501,"该商品每人限购一件"),

    //订单
    ORDER_NOT_EXIST(500601,"订单不存在")

    ;

    private final Integer code;
    private final String message;
}
